<!--面图层，相关参数请参考官网-->
<template>
  <el-amap-polyline
    v-for="(polylineItem, index) in polylineComponents"
    :key="polylineItem"
    :initEvents="false"
    :visible="polylineItem.visible"
    :editable="false"
    :lineJoin="polylineItem.lineJoin"
    :geodesic="polylineItem.geodesic"
    :path="polylineItem.path"
    :isOutline="polylineItem.isOutline"
    :visible-duration="500"
    :ref="`polylineComponents${index}`"
  />
</template>
<script>
export default {
  props: ['polylineComponents'],
  methods: {
    getpolylineComponentsRef(index) {
      return this.$refs[`polylineComponents${index}`];
    },
  },
};
</script>
<style scoped lng="less"></style>
